home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / objpak / point.h.z / point.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.6 KB  |  71 lines

  1.  
  2. /*
  3.  * Portable Object Compiler (c) 1997,98,99.  All Rights Reserved.
  4.  * $Id: point.h,v 1.11 1999/06/23 19:22:13 stes Exp $
  5.  */
  6.  
  7. /*
  8.  * This library is free software; you can redistribute it and/or modify it
  9.  * under the terms of the GNU Library General Public License as published 
  10.  * by the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef __OBJPOINT_H__
  24. #define __OBJPOINT_H__
  25.  
  26. #ifndef __OBJECT_INCLUDED__
  27. #define __OBJECT_INCLUDED__
  28. #include <stdio.h>
  29. #include "Object.h" /* Stepstone Object.h assumes #import */
  30. #endif
  31.  
  32. @interface Point : Object
  33. {
  34.     int xLoc;
  35.     int yLoc;
  36. }
  37.  
  38. + new;
  39. + x:(int)x y:(int)y;
  40.  
  41. - x:(int)x y:(int)y;
  42. - x:(int)x;
  43. - y:(int)y;
  44. - (int) x;
  45. - (int) y;
  46.  
  47. - (unsigned) hash;
  48. - (BOOL) isEqual:aPoint;
  49. - (BOOL) isBelow:aPoint;
  50. - (BOOL) isAbove:aPoint;
  51. - (BOOL) isLeft:aPoint;
  52. - (BOOL) isRight:aPoint;
  53.  
  54. - moveBy:aPoint;
  55. - moveBy:(int)x:(int)y;
  56. - moveTo:aPoint;
  57. - plus:aPoint;
  58. - translateBy:aPoint;
  59.  
  60. - printOn:(IOD)aFile;
  61. #ifdef __PORTABLE_OBJC__
  62. - fileOutOn:aFiler;
  63. - fileInFrom:aFiler;
  64. #endif /* __PORTABLE_OBJC__ */
  65.  
  66. @end
  67.  
  68. #endif /* __OBJPOINT_H__ */
  69.  
  70.  
  71.